<?php

// uncomment the following to define a path alias
// Yii::setPathOfAlias('local','path/to/local-folder');
// This is the main Web application configuration. Any writable
// CWebApplication properties can be configured here.
return array(
    'basePath' => dirname(__FILE__) . DIRECTORY_SEPARATOR . '..',
    // preloading 'log' component
    //'preload' => array('log'),
    // autoloading model and component classes
    'import' => array(
                    'application.models.*',
                    'application.components.*',
                    'application.components.AuthClass.*',
                    'application.components.BaseClass.*',
                    'application.logic.commonLogic.*',
    ),
    'modules' => array(
    // uncomment the following to enable the Gii tool
    
      'gii'=>array(
      	'class'=>'system.gii.GiiModule',
      	'password'=>'anhyeuem',
      ),
    ),
    'behaviors' => array(
        'runEnd' => array(
            'class' => 'application.components.WebApplicationEndBehavior',
        ),
    ),
    //'behaviors' => array('ApplicationConfigBehavior'),
    // application components
    
    // application-level parameters that can be accessed
    // using Yii::app()->params['paramName']
    'params' => array(
        // this is used in contact page
        'DATA_LIMIT'    => 10000,
        'DATA_PER_PAGE' => 20,
        'DEFAULT_SORT'  => 'DESC',
    ),
    //Using Seesion of Yii framework
    /*'session' => array (
        'autoStart' => false, //Set auto start session when browser connect website
        //If you are using sessions, for security purposes, you may want to change the session’s name,
        //always require cookies, and change the save path
        'sessionName' => 'Site Access',
        'cookieMode' => 'only',
        'savePath' => '/path/to/new/directory',
        //you can store the session data in a database
        'class' => 'system.web.CDbHttpSession',
        'connectionID' => 'db',
        'sessionTableName' => 'actual_table_name',
    ),*/
);